import request from '@/utils/request'

// 查询项目用户列表
export function listProjectUser(query) {
  return request({
    url: '/xm/projectUser/list',
    method: 'get',
    params: query
  })
}
export function getPermissions(query) {
  return request({
    url: '/xm/projectUser/getPermissions',
    method: 'get',
    params: query
  })
}
// 查询项目用户详细
export function getProjectUser(id) {
  return request({
    url: '/xm/projectUser/' + id,
    method: 'get'
  })
}


// 新增项目用户
export function addProjectUser(data) {
  return request({
    url: '/xm/projectUser',
    method: 'post',
    data: data
  })
}

// 修改项目用户
export function updateProjectUser(data) {
  return request({
    url: '/xm/projectUser',
    method: 'put',
    data: data
  })
}

// 删除项目用户
export function delProjectUser(id) {
  return request({
    url: '/xm/projectUser/' + id,
    method: 'delete'
  })
}
